namespace Infrastructure.Utils
{
    public class StreamHelper
    {
        public static async Task<string> GetStringAsync(Stream s)
        {
            if (!s.CanSeek) return "";
            s.Position = 0;
            return await new StreamReader(s).ReadToEndAsync();
        }
    }
}
